/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ${USER}
 * Date: ${YEAR}-${MONTH}-${DAY}
 * Time: ${TIME}
 */
interface A {
    void test();
}

public class Main {

    public static void main(String[] args) {
        OuterClass.InnerClass innerClass = new OuterClass.InnerClass();
       A a = new A() {
            //以下为匿名内部类
            @Override
            public void test() {
                System.out.println("匿名内部类");
            }
        };
       a.test();;
    }
}